using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace Player
{
    /// <summary>
    /// generate by msg tool
    /// 玩家砖石改变
    /// </summary>
	public class ResDiamondChangeMsg : ResMessage
	{
		//值
		public long diamond;

        public ResDiamondChangeMsg() { }

        public ResDiamondChangeMsg(long diamond)
        {
            this.diamond = diamond;
        }

        
		public void write(object obj)
		{
            ByteBuffer b = obj as ByteBuffer;
			b.PushLong(diamond);
			
		}

	    public void read(object obj)
		{
            MyConverter b = obj as MyConverter;
			diamond = b.toInt64();
			
		}

		public int Id
		{
            get { return 101205; }
		}

        public String Desc
        {
            get { return "玩家砖石改变"; }
        }
	}
}